#include <math.h>

class myPoint3D
{
  //The x,y,z coordinates of this point.
public:

  double X, Y, Z; 

  myPoint3D() {}

  myPoint3D(double x, double y, double z)
  {
    X = x;
    Y = y;
    Z = z; 
  }

  double dist(myPoint3D p1)
  {
    return sqrt(  (p1.X-X)*(p1.X-X) + (p1.Y-Y)*(p1.Y-Y) + (p1.Z-Z)*(p1.Z-Z)  ); 
  }

  void print(char *s)
  {
	  std::cout << s << X << ", " << Y << ", " << Z << "\n";
  }
};





